﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Verifications;

namespace Pixysoft.Weblications.Sango.Battle
{
    class BattleAttack
    {
        long attackTypeCode = -1;
        // 当初始化战斗武将的时候，会被战斗武将的typecode设置, 而之所以会被初始化，是因为配置的时候，设置了对应的编码

        protected BattleAttack()
        {

        }

        public BattleAttack(long attackTypeCode)
        {
            this.attackTypeCode = attackTypeCode;
        }

        public long getAttackTypeCode()
        {
            return attackTypeCode;
        }

        public bool accept(long attacktypecode)
        {
            return this.getAttackTypeCode() == attacktypecode;
        }
    }
}